package com.itheima.d7_generics_interface;

public class Test {
    public static void main(String[] args) {
        // 目标：掌握泛型接口的定义和使用。
        MyArrayList list = new MyArrayList();
        list.add("1111");
    }
}
interface MyList<E>{
    boolean add (E e);
}
class  MyArrayList implements  MyList<String>{

    @Override
    public boolean add(String s) {
        return false;
    }
}
class My<E> implements  MyList<E>{

    @Override
    public boolean add(E e) {
        return false;
    }
}
